[knx] Prevent reconfigutation of IP routers#19850
Conversation
Follow-up to openhab#19839. Discover separate Things for KNX IP routers and avoid setting IP address and port for routers. Routers use a defined multicast address. Make sure that Thing for router is separate, event if the same device exports a tunneling device. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
|
@kaikreuzer Following the road if the minimal impact change, this might to the trick. Looking at the user report, I have the feeling that the router is discovered both as routing device and as tunneling device. https://community.openhab.org/t/knx-secure-initial-implementation/134133/15 For routers, the IP field should be either empty (what you preferred before) or carry the multicast address which is quite useless unless somebody reconfigured it in ETS, which can be done via the settings tab of the backbone, unlikely). Putting the hard coded default multicast address is now removed. I have added Hard to test without a device at hand. The proposed change is probably low risk. |
kaikreuzer
left a comment
There was a problem hiding this comment.
Thanks - yes let's hope that does the trick!
FWIW, let me just comment on this as I have a different understanding here: The IP field should be empty or carry the physical IP address of the device. As for all other Things, the parameter |
Yes, correct, and I consider this as a bug in the KNX binding as mentioned here: |
|
I didn't follow this discussion from the beginning, but from your most recent comments, it seems to share some similarities with #19516, which you might want to have a look at. In this particular case the binding had a configuration parameter for the IP address of the network interface to use for the multicast listener. This was provided initially from discovery. At the same time the IP address of the gateway itself was also configured. Therefore, configuration of the multicast IP address was useless. |
|
@jlaur thanks for mentioning! We are aware of this, and hopefully a coming core change will give more control to the binding developer - weather or not (and for which elements) the rediscovery should overwrite stored/configured settings. |
The point is that the multicast address is not static (though likely the default for 99,9% of the users). You can configure in the Backbone settings in ETS: But let's discuss those improvements later. To have it a clean way, we would probably need 2 different fields. |
|
Yes, understood that some routers might make it configurable (although I bet no user/electrician will ever change this). |


Follow-up to #19839.
Discover separate Things for KNX IP routers and avoid setting IP address and port for routers. Routers use a defined multicast address.
Make sure that Thing for router is separate, event if the same device exports a tunneling device.